package cn.net.msg.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.stereotype.Component;
@Component("city")
@Entity @Table(name = "tb_city")
public class TbCity {

    @Id @Column(name = "City_id",length=11)
    private int cityId;

    @Column(name = "City_index",length=11)
    private int cityIndex;

    @Column(name = "City_name",length=100)
    private String cityName;

    @Column(name = "Province_id",length=11)
    private int provinceId;


    public int getCityId() {
        return cityId;
    }
    public void setCityId(int cityId) {
        this.cityId = cityId;
    }


    public int getCityIndex() {
        return cityIndex;
    }
    public void setCityIndex(int cityIndex) {
        this.cityIndex = cityIndex;
    }


    public String getCityName() {
        return cityName;
    }
    public void setCityName(String cityName) {
        this.cityName = cityName;
    }


    public int getProvinceId() {
        return provinceId;
    }
    public void setProvinceId(int provinceId) {
        this.provinceId = provinceId;
    }
}
